package cloud.kiko.psn.feign.rmi;

import cloud.kiko.psn.pojo.common.R;
import cloud.kiko.psn.pojo.common.baz.mail.Mail;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 邮件微服务声明式调用接口<br>
 * 2024/7/14 0:43
 */
@FeignClient(value = "baz-micro-service-mail")
@RequestMapping("mail")
public interface MailRMI {

	/**
	 * 发送普通文本格式邮件(可带附件)
	 */
	@PostMapping("text")
	R<?> textEmail(@RequestBody Mail mail);

	/**
	 * 发送HTML格式邮件(可带附件)
	 */
	@PostMapping("html")
    R<?> htmlEmail(@RequestBody Mail mail);
}
